package com.founder.apps.resource.webService;

public class NavigationServicesProxy implements com.founder.apps.resource.webService.NavigationServices {
  private String _endpoint = null;
  private com.founder.apps.resource.webService.NavigationServices navigationServices = null;
  
  public NavigationServicesProxy() {
    _initNavigationServicesProxy();
  }
  
  public NavigationServicesProxy(String endpoint) {
    _endpoint = endpoint;
    _initNavigationServicesProxy();
  }
  
  private void _initNavigationServicesProxy() {
    try {
      navigationServices = (new com.founder.apps.resource.webService.NavigationServicesServiceLocator()).getNavigationServicesPort();
      if (navigationServices != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)navigationServices)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)navigationServices)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (navigationServices != null)
      ((javax.xml.rpc.Stub)navigationServices)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.founder.apps.resource.webService.NavigationServices getNavigationServices() {
    if (navigationServices == null)
      _initNavigationServicesProxy();
    return navigationServices;
  }
  
  public java.lang.String queryNavigation(java.lang.String arg0) throws java.rmi.RemoteException{
    if (navigationServices == null)
      _initNavigationServicesProxy();
    return navigationServices.queryNavigation(arg0);
  }
  
  
}